<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let person = {name:'zs',age:18}

        // 变量名称必须与对象的属性名称一致
        let { name:xm,age } = { name:'zs',age:18 } ;

        console.log(xm);	
        console.log(age);

        // responseData -- code ,msg,data
        // let { code } = res ;
        // let code = res.code ;
    </script>
</body>
</html>